$(function () {
    
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'area'
            },
            title: {
                text: 'Temperarure chart'
            },
            xAxis: {
                type: 'datetime',
                title:{
                	text: 'time'
                },
                dateTimeLabelFormats:{
                	hour: '%H:%M'
                }
            },
            yAxis: {
                title:{
                	text: 'temperature'
                }
            },

            tooltip: {
                formatter: function() {
                    return ''+
                        this.series.name +': '+ this.y +'';
                }
            },
            credits: {
                enabled: false
            },
            series: [{
                name: 'Temperatur Outside',
                data: [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20],
                pointInterval: 3600 * 1000
            }, {
                name: 'Temperatur Inside',
                data: [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20],
                pointInterval: 3600 * 1000
            }]
        });
    });
    
});